/**
 * Created by Administrator on 2017/9/4.
 */

function error() {//详情页面加载失败后，调用Android执行js方法，在html页面上显示相应信息
    document.getElementById("img").src = "timeout.png";
    document.getElementById("img").style.width = "168px";
    document.getElementById("img").style.height = "268px";

    document.getElementById("errorText").innerHTML = "出错啦";
    document.getElementById("errorText").style.fontSize = '25px';
    document.getElementById("errorText").style.color = "red";
}

function reloadNative() {//点击失败图片后，执行android重新加载的方法reload
    document.getElementById("img").src = "loading.gif";
    document.getElementById("img").style.width = "128px";
    document.getElementById("img").style.height = "128px";
    
    document.getElementById("sihe").innerHTML = "加载中...";
    document.getElementById("errorText").style.fontSize = '25px';
    document.getElementById("errorText").style.color = "red";

    window.jsInterface.reload();
}

function noNctiveNetwork() {
    error();
    window.jsInterface.nativeNoNetwork();
}

function goToPager(pager) {
    localStorage.setItem("pager", pager);
    self.location = 'version_manager.html'
}